﻿using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

namespace zframe.editor
{
    /// <summary>
    /// 处理图集导入
    /// </summary>
    public class TexturePostprocessor : AssetPostprocessor
    {
        void OnPreprocessTexture()
        {
            UnityEditor.TextureImporter tex = (UnityEditor.TextureImporter)assetImporter;
            
            tex.textureType = TextureImporterType.Sprite;
        }

    }
}
